/**
 * Project hdmap
 * @author shengjialiang
 * @version v1.0
 */


#ifndef _FILEACCESSOR_H
#define _FILEACCESSOR_H

#include "map_helper/HelperConfig.h"
#include <osg/Array>

namespace Helper
{
    class MAP_HELPE_EXPORT CFileAccessor 
    {
    public:
        CFileAccessor();

        ~CFileAccessor();

        static bool exist(const std::string& in_path);

        static std::string readFile(const std::string& in_path);

        static bool writeFile(std::string& data, const std::string& in_path);

        static bool writeFileEx(std::string& data, const std::string& in_path);

        static bool getOrCreateDir(const std::string& cacheDir);
    };
}
#endif //_FILEACCESSOR_H